import os, tqdm

def get_timestamp(flatten_json_root_path):
    timestamp_dict = {}
    for clip in tqdm.tqdm(os.listdir(flatten_json_root_path), desc='Getting timestamp...'):
        timestamp_list = []
        clip_path = os.path.join(flatten_json_root_path, clip)
        for time in os.listdir(clip_path):
            timestamp_list.append(time[:-5])

        timestamp_list.sort()
        timestamp_dict[clip] = timestamp_list

    return timestamp_dict